const nodata = require('../tw-lib-base/no-data/props')
module.exports = {
  lists: {
    type: Array,
    default () {
      return [
        {
          title: '这是新闻标题这是新闻标题这是新闻标题这是新闻标题这是新闻标题',
          classfiy: '校园动态',
          classfiyHref: 'http://www.baidu.com',
          classfiyTarget: '_blank',
          href: '/detail.html',
          target: '_blank',
          img: '/2020/11/18/6983f93e-2d54-4e15-bdee-fc9a297b367e/pic7.jpg'
        },
        {
          title: '这是新闻标题',
          classfiy: '校园动态',
          classfiyTarget: '_blank',
          classfiyHref: 'http://www.baidu.com',
          href: '/detail.html',
          target: '_blank',
          img: '/2020/11/17/0b312406-383a-46cc-9c5a-227a7da87ba5/logo.png'
        },
        {
          title: '这是新闻标题2',
          classfiy: '校园动态',
          classfiyTarget: '_blank',
          classfiyHref: 'http://www.baidu.com',
          href: '/detail.html',
          target: '_blank'
        },
        {
          title: '这是新闻标题3',
          classfiy: '校园动态',
          classfiyTarget: '_blank',
          classfiyHref: 'http://www.baidu.com',
          href: '/detail.html',
          target: '_blank',
          img: '/2020/11/18/6983f93e-2d54-4e15-bdee-fc9a297b367e/pic7.jpg'
        },
        {
          title: '这是新闻标题4',
          classfiy: '校园动态',
          classfiyTarget: '_blank',
          classfiyHref: 'http://www.baidu.com',
          href: '/detail.html',
          target: '_blank',
          img: '/2020/11/17/0b312406-383a-46cc-9c5a-227a7da87ba5/logo.png'
        },
        {
          title: '这是新闻标题5',
          classfiy: '校园动态',
          classfiyTarget: '_blank',
          classfiyHref: 'http://www.baidu.com',
          href: '/detail.html',
          target: '_blank'
        }
      ]
    },
    name: '图片链接列表内容',
    filedType: 'api'
  },
  gridLayout: {
    type: String,
    default: 'three',
    name: '栅格布局',
    filedType: 'select',
    options: [
      {
        name: '一栏',
        value: 'one'
      },
      {
        name: '两栏',
        value: 'two'
      },
      {
        name: '三栏',
        value: 'three'
      },
      {
        name: '四栏',
        value: 'four'
      },
      {
        name: '五栏',
        value: 'five'
      }
    ],
    // 是否支持多选，支持多选时default要指定为数组
    multiple: false
  },

  gridSpacing: {
    type: String,
    default: 'xmiddle',
    name: '栅格布局间距',
    filedType: 'select',
    options: [
      {
        name: '5px',
        value: 'xstepgutter'
      },
      {
        name: '10px',
        value: 'xtinygutter'
      },
      {
        name: '15px',
        value: 'xsmallgutter'
      },
      {
        name: '20px',
        value: 'xmiddle'
      },
      {
        name: '30px',
        value: 'xlargegutter'
      }
    ]
  },

  imgBg: {
    type: String,
    default: '#f7fafc',
    name: '图片背景色',
    filedType: 'color'
  },

  imgHeight: {
    type: String,
    default: '120px',
    name: '图片高度',
    filedType: 'string'
  },

  imgFitParent: {
    type: Boolean,
    default: false,
    name: '图片宽度100%',
    nameTips: '图片宽度100%',
    filedType: 'switch'
  },

  imgObjectFit: {
    type: String,
    default: 'contain',
    name: '封面图片平铺方式',
    filedType: 'select',
    options: [
      {
        name: '拉伸充满容器',
        value: 'fill'
      },
      {
        name: '原有比例，内容缩放',
        value: 'contain'
      },
      {
        name: '原有比例，超出裁剪',
        value: 'cover'
      }
    ],
    multiple: false,
    vif: {
      key: 'imgFitParent',
      value: true
    }
  },

  imgMarginBottom: {
    type: String,
    default: '0',
    name: '图片容器与底部的距离',
    filedType: 'string'
  },

  imgborderRadiusPosition: {
    type: Array,
    default () {
      return [0, 1, 2, 3]
    },
    name: '图片容器圆角位置',
    filedType: 'select',
    options: [
      {
        name: '左上',
        value: 0
      },
      {
        name: '左下',
        value: 1
      },
      {
        name: '右上',
        value: 2
      },
      {
        name: '右下',
        value: 3
      }
    ],
    multiple: true
  },


  imgborderRadius: {
    type: String,
    default: '5px',
    name: '图片容器圆角',
    filedType: 'string'
  },
  imgDefault: {
    type: Array,
    default () {
      return []
    },
    name: '默认图片',
    nameTip: '不指定为空',
    filedType: 'file',
    limit: 1,
    maxSize: 1024
  },

  hasTitle: {
    type: Boolean,
    default: true,
    name: '标题',
    filedType: 'switch'
  },

  titlePosition: {
    type: String,
    default: 'outer',
    name: '标题位置',
    filedType: 'select',
    options: [
      {
        name: '图片里面',
        value: 'inner'
      },
      {
        name: '图片下面',
        value: 'outer'
      }
    ],
    multiple: false,
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titleColor: {
    type: String,
    default: '#333',
    name: '标题颜色',
    filedType: 'color',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titleHoverColor: {
    type: String,
    default: '#f12e22',
    name: '标题划过颜色',
    filedType: 'color',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titleFontSize: {
    type: String,
    default: '16px',
    name: '标题字体大小',
    filedType: 'string',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  isTitleBold: {
    type: Boolean,
    default: false,
    name: '标题加粗',
    filedType: 'switch',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titleHeight: {
    type: String,
    default: '30px',
    name: '标题高度',
    filedType: 'string',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titleLineHeight: {
    type: String,
    default: '30px',
    name: '标题行高',
    filedType: 'string',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titlePaddingLeftRight: {
    type: String,
    default: '10px',
    name: '标题内间距（左右）',
    filedType: 'string',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },


  titleBgColor: {
    type: String,
    default: '#fff',
    name: '标题背景颜色',
    filedType: 'color',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titleEllipsis: {
    type: Boolean,
    default: true,
    name: '标题截断',
    filedType: 'switch',
    vif: {
      key: 'hasTitle',
      value: true
    }
  },

  titleEllipsisNum: {
    type: String,
    default: '1',
    name: '标题阶段行数',
    filedType: 'string',
    vif: {
      key: 'titleEllipsis',
      value: true
    }
  },

  titleAlign: {
    type: String,
    default: 'center',
    name: '标题对齐',
    filedType: 'select',
    options: [
      {
        name: '左对齐',
        value: 'left'
      },
      {
        name: '居中',
        value: 'center'
      },
      {
        name: '右对齐',
        value: 'right'
      }
    ]
  },

  hasClassfiy: {
    type: Boolean,
    default: true,
    name: '模块分类',
    filedType: 'switch'
  },

  isClassfiyBold: {
    type: Boolean,
    default: false,
    name: '模块加粗',
    filedType: 'switch',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyHeight: {
    type: String,
    default: '50px',
    name: '模块分类高度',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyLineHeight: {
    type: String,
    default: '30px',
    name: '模块分类行高',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyColor: {
    type: String,
    default: '#333',
    name: '模块分类颜色',
    filedType: 'color',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyBgColor: {
    type: String,
    default: '#fbf5f6',
    name: '模块分类背景色',
    filedType: 'color',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyHoverColor: {
    type: String,
    default: '#f12e22',
    name: '模块分类划过颜色',
    filedType: 'color',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyFontSize: {
    type: String,
    default: '16px',
    name: '模块分类字体大小',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyAlign: {
    type: String,
    default: 'center',
    name: '模块分类对齐',
    filedType: 'select',
    options: [
      {
        name: '左对齐',
        value: 'left'
      },
      {
        name: '居中',
        value: 'center'
      },
      {
        name: '右对齐',
        value: 'right'
      }
    ],
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyPaddingTop: {
    type: String,
    default: '10px',
    name: '模块分类内边距(上)',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyPaddingBottom: {
    type: String,
    default: '10px',
    name: '模块分类内边距(下)',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyPaddingLeft: {
    type: String,
    default: '0px',
    name: '模块分类内边距(左)',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyPaddingRight: {
    type: String,
    default: '0px',
    name: '模块分类内边距(右)',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyRadiusPosition: {
    type: Array,
    default () {
      return [0, 1, 2, 3]
    },
    name: '模块分类圆角位置',
    filedType: 'select',
    options: [
      {
        name: '左上',
        value: 0
      },
      {
        name: '左下',
        value: 1
      },
      {
        name: '右上',
        value: 2
      },
      {
        name: '右下',
        value: 3
      }
    ],
    multiple: true,
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  classfiyborderRadius: {
    type: String,
    default: '5px',
    name: '模块分类圆角',
    filedType: 'string',
    vif: {
      key: 'hasClassfiy',
      value: true
    }
  },

  leftAndRightCustom: {
    type: Boolean,
    default: false,
    name: '校园风光定制',
    filedType: 'switch'
  },

  dataIsFromPortal: {
    type: Boolean,
    default: false,
    name: '是否从门户获取数据',
    nameTips: '如果从门户获取数据，则数据集无效',
    filedType: 'switch'
  },

  moudleId: {
    type: String,
    default: '',
    name: '新闻模块Id',
    nameTip: '新闻模块Id参数',
    filedType: 'sync',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },
  pageNo: {
    type: Number,
    default: 1,
    name: '当前页',
    filedType: 'sync',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  pageSize: {
    type: Number,
    default: 10,
    name: '每页显示多少行',
    filedType: 'sync',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  total: {
    type: Number,
    default: 50,
    name: '内容总数',
    filedType: 'sync',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  dataHasImg: {
    type: Boolean,
    default: false,
    name: '显示有封面的数据',
    filedType: 'switch',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  detaillUrl: {
    type: String,
    default: './detail.html',
    name: '详情页跳转地址',
    filedType: 'string',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  ...nodata
}
